home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Examples / CFMExamples / ModApp / ModuleSources / PowerResource.r < prev    next >
Encoding:
Text File  |  1998-12-03  |  877 b   |  33 lines  |  [TEXT/MPS ]

  1. // File: PowerResource.r
  2.  
  3. #include "Types.r"
  4. #include "CodeFragmentTypes.r"
  5.  
  6. resource 'STR#' (128, "Message", purgeable) {
  7.     {
  8.         "This is running from a PowerPC resource",
  9.         "This is running from a 68K resource"
  10.     }
  11. };
  12.  
  13. // We're using the 'cfrg' to indicate that this module contains
  14. // native code. However, ModApp is the only thing that actually
  15. // looks for this resource in the module -- the system only looks
  16. // if the file is an application or a shared library
  17.  
  18. resource 'cfrg' (0) {
  19. {
  20.   kPowerPC,
  21.   kFullLib,
  22.   kNoVersionNum,kNoVersionNum,
  23.   kDefaultStackSize, kNoAppSubFolder,
  24.   kIsDropIn, kInMem,
  25.   /* We use "kInMemory" to mean a resource. This usage is strictly a ModApp convention. */
  26.   kZeroOffset,kWholeFork,
  27.   "PowerResource"
  28.   }
  29. };
  30.  
  31. // Get the PEF container and load it into a resource
  32. read 'TOOL' (1, "Tool in a PowerPC resource") "::PowerPC:PowerResource.ppc";
  33.